# ~*~ coding: utf-8 ~*~
import json
import os
import importlib,sys
importlib.reload(sys)
import urllib

def SendMs(url,msg):

	url = DingURL
	textmod={"msgtype": "text", "text": {"content": '%s'%msg}}
	textmod = json.dumps(textmod)
	print(textmod)
	header_dict = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko',"Content-Type": "application/json"}
	req = urllib.request.Request(url=url,data=textmod,headers=header_dict)
	res = urllib.request.urlopen(req)
	res = res.read()
	print(res)




